package com.iven.xie.designpattern.decorator;

/**
 * 实现了 Shape 接口的抽象装饰类。
 *
 * @author xiezhendong
 * @date 2021/7/30
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw() {
        decoratedShape.draw();
    }
}
